package pcb.models 
{
	
	/**
	 * ...
	 * @author Fintan Boyle
	 */
	public class ModelLocator 
	{
		private static var instance:ModelLocator;
		
		public var playerSettings:PlayerSettings;
		public var localeModel:LocaleModel;
		public var assetsModel:AssetModel;
		public var lessonStateModel:LessonStateModel;
		public var mainMenuModel:MainMenuModel;
		public var playerStateModel:PlayerStateModel;
		
		public function ModelLocator(singleton:Singleton) 
		{
			playerSettings = new PlayerSettings();
			localeModel = new LocaleModel();
			assetsModel = new AssetModel();
			lessonStateModel = new LessonStateModel();
			mainMenuModel = new MainMenuModel();
			playerStateModel = new PlayerStateModel();
		}
		
		public static function getInstance():ModelLocator 
		{
			if (!instance) instance = new ModelLocator(new Singleton());
			
			return instance;
		}
		
	}
	
}
class Singleton{}